package com.fooddiary.web.form;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class RegistrationForm {

	private List<String> errors = new ArrayList<String>();
	
	private String login;
	private String password1;
	private String password2;
	private String firstName;
	private String lastName;
	private String email;
	
	/**
	 * Returns login of user <br>
	 * @return {@link String};
	 */
	public String getLogin() {
		return login;
	}
	
	/**
	 * Sets login for user <br>
	 * @param p_login - {@link String};
	 */
	public void setLogin(String p_login) {
		login = p_login;
	}
	
	/**
	 * Returns password of user <br>
	 * @return {@link String};
	 */
	public String getPassword1() {
		return password1;
	}
	
	/**
	 * Sets password for user <br>
	 * @param p_password1 - {@link String};
	 */
	public void setPassword1(String p_password1) {
		password1 = p_password1;
	}
	
	/**
	 * Returns repeated password of user <br>
	 * @return {@link String};
	 */
	public String getPassword2() {
		return password2;
	}
	
	/**
	 * Sets repeated password for user <br>
	 * @param p_password2 - {@link String};
	 */
	public void setPassword2(String p_password2) {
		password2 = p_password2;
	}
	
	/**
	 * Returns first name of user <br>
	 * @return {@link String};
	 */
	public String getFirstName() {
		return firstName;
	}
	
	/**
	 * Sets first name for user <br>
	 * @param p_firstName - {@link String};
	 */
	public void setFirstName(String p_firstName) {
		firstName = p_firstName;
	}
	
	/**
	 * Returns last name of user <br>
	 * @return {@link String};
	 */
	public String getLastName() {
		return lastName;
	}
	
	/**
	 * Sets last name for user <br>
	 * @param p_lastName - {@link String};
	 */
	public void setLastName(String p_lastName) {
		lastName = p_lastName;
	}

	/**
	 * Returns email of user <br>
	 * @return {@link String};
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * Sets email for user <br>
	 * @param p_email - {@link String};
	 */
	public void setEmail(String p_email) {
		email = p_email;
	}

	/**
	 * Returns list with errors <br>
	 * @return {@link List<String>};
	 */
	public List<String> getErrors() {
		return errors;
	}

	/**
	 * Sets list with errors <br>
	 * @param p_errors - {@link List<String>};
	 */
	public void setErrors(List<String> p_errors) {
		errors = p_errors;
	}

	
}
